package itdep.common.resolver;

import itdep.common.services.EntityService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author Ivan Khalopik
 * @version $Revision: 4 $ $Date: 2010-06-10 13:13:16 +0000 (Thu, 10 Jun 2010) $
 */
public class ServiceResolver<S extends EntityService> extends SimpleResolver<Class<?>, S> {

	@SuppressWarnings({"unchecked"})
	@Autowired
	public void setServices(final List<EntityService> services) {
		for (EntityService service : services) {
			addToSource((S) service);
		}
	}
}
